package com.my.dao;

import java.util.List;

import com.my.bean.LiuYan;

public interface LiuYanDAO {
	/* 增加一条留言 */
	boolean add(LiuYan liuYan) throws Exception;

	/* 获得所有留言 */
	List<LiuYan> getAllLiuYan() throws Exception;

	/* 根据ID获取留言 */
	LiuYan getLiuYanById(Class<LiuYan> liuYan, Integer id) throws Exception;
}
